class Linear:
    def __init__(self, input, output=None):
        self.input = input
        self.output = output

    def forward(self):
        if None != self.output:
            print("输入的维度为{},输出的参数为{}".format(self.input, self.output))
        else:
            print("开始调用全连接层")


temp = Linear(3, 1)
print(temp.input)
print(temp.output)
print(temp.forward())
